package com.wuchao.annotation;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author wuchao66
 * @Date 2023/10/31 11:09
 * @PackageName:com.wuchao.annotation
 * @ClassName: T1
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class T1 {
    public static void main(String[] args) {
        List<String> collect = Arrays.stream(
                new String[]{"波乐", "蝴蝶", "乐乐猪", "屁屁哎超哥", "朱朱乐"})
                .filter(xjj -> {
                    if (xjj.length() >= 3) {
                        return true;
                    }
                    return false;
                }).map(xjj -> {
                    xjj = xjj + "超哥的最爱";
                    return xjj;
                }).collect(Collectors.toList());
        collect.forEach(xjj-> System.out.println(xjj));
    }

}
